import Layout from '@/layout'
const orderRouter = {
  path: '/order/list',
  component: Layout,
  name: 'order-list',
  meta: {
    title: '订单',
    icon: 'order',
    permissions: ['order.query']
  },
  children: [
    {
      path: '/order/list',
      component: () => import('@/views/order/list'),
      name: 'order-list',
      meta: {title: '订单管理', icon: 'order'
        // ,permissions: ['order.query']
      },
    },

    // 注册路由
    {
      path: '/order/list',
      component: () => import('@/views/order/list'),
      name: 'order-list',
      meta: { title: '订单列表', icon: 'sub_order'},
      hidden: true
    },
    {
      path: '/order/view',
      component: () => import('@/views/order/view'),
      name: 'order-add',
      meta: { title: '订单详情', icon: 'sub_order'},
      hidden: true
    },
    {
      path: '/order/edit',
      component: () => import('@/views/order/edit'),
      name: 'order-edit',
      meta: { title: '修改订单', icon: 'sub_order'},
      hidden: true
    },
  ]
}
export default orderRouter
